package cn.edu.zzuli.nothinglink.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author suzyyy
 * @since 2021-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class LiveRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    /**
     * 直播名称
     */
    private String liveName;

    /**
     * 开播时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /**
     * 所属直播间id
     */
    private Integer liveId;

    /**
     * 提出签到次数
     */
    private Integer liveSignNumber;

    /**
     * 提出问题次数
     */
    private Integer liveProblemNumber;

    /**
     * 开播的课程id
     */
    private Integer liveCourseId;

    /**
     * 开播设定的班级 json格式存放
     */
    private String liveClassJson;


}
